using System;
using UnityEngine;

[Serializable]
public class objrot_00201 : MonoBehaviour
{
	public int speed;

	public float friction;

	public float lerpSpeed;

	private float xDeg;

	private float yDeg;

	private Quaternion fromRotation;

	private Quaternion toRotation;

	public void Update()
	{
		if (Input.GetMouseButton(0))
		{
			xDeg -= 0f;
			yDeg += UnityEngine.Input.GetAxis("Mouse Y") * (float)speed * friction;
			fromRotation = transform.rotation;
			toRotation = Quaternion.Euler(yDeg, xDeg, 0f);
			transform.rotation = Quaternion.Lerp(fromRotation, toRotation, Time.deltaTime * lerpSpeed);
		}
	}

	public void Main()
	{
	}
}
